package com.kingdee.eas.fdc.propertymgmt.client;

import org.apache.log4j.Logger;

import com.kingdee.bos.metadata.entity.FilterInfo;
import com.kingdee.bos.metadata.entity.FilterItemInfo;
import com.kingdee.bos.metadata.query.util.CompareType;
import com.kingdee.bos.ui.face.CoreUIObject;
import com.kingdee.eas.fdc.basedata.FDCCustomerParams;

public class PPMReceiveGatherFilterListUICTEx extends PPMReceiveGatherFilterListUI {

		public PPMReceiveGatherFilterListUICTEx() throws Exception {
			super();
		}
	
	  private static final Logger logger = CoreUIObject.getLogger(PPMReceiveGatherFilterListUICTEx.class);
	  
	  protected FilterInfo getEntryFilter(FDCCustomerParams param) {
		 FilterInfo filterInfo=super.getEntryFilter(param);
		 String moneyDefineID = param.getString("moneyDefine");
		 if(moneyDefineID!=null)
		 {
			 filterInfo.getFilterItems().remove((new FilterItemInfo("moneyDefine.id", moneyDefineID, CompareType.EQUALS)));
			 filterInfo.getFilterItems().add((new FilterItemInfo("moneyDefine.id", moneyDefineID, CompareType.INCLUDE)));
		 }
		 return filterInfo;
	  }
}
